<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Idea Tech</title>
        <meta charset="UTF-8" />
        <link rel="stylesheet" href="__PUBLIC__/base/css/bootstrap.min.css" />
        <link rel="stylesheet" href="__PUBLIC__/base/css/fullcalendar.css" />
        <link rel="stylesheet" href="__PUBLIC__/base/css/matrix-style.css" />
        <link rel="stylesheet" href="__PUBLIC__/base/css/matrix-media.css" />
        <link href="__PUBLIC__/base/font-awesome/css/font-awesome.css" rel="stylesheet" />
        <link rel="stylesheet" href="__PUBLIC__/base/css/jquery.gritter.css" />
        <load href="__PUBLIC__/Css/main.css" />
    </head>
    <body>

        <!--Header-part-->
        <div id="header">
            <h1><a href="{:U('/HOME/Index')}" target="mainFrame">Idea Tech</a></h1>
        </div>
        <!--close-Header-part--> 


        <!--top-Header-menu-->
        <div id="user-nav" class="navbar navbar-inverse">
            <ul class="nav">
                <li  class="dropdown" id="profile-messages" >
                    <a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle">
                        <i class="icon icon-user"></i>  
                        <span class="text">{$Think.Session.user.truename}</span>
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="#nogo" url="{:U('/HOME/Passport/Profile')}" tabid="passport_profile" onclick="PageFrames.moveTo(this)"><i class="icon-user"></i> {:L('my_profile')}</a></li>
                        <li class="divider"></li>
                        <li><a href="#nogo" url="{:U('/HOME/My/Desktop')}" tabid='home_my_desktop' onclick="PageFrames.moveTo(this)"><i class="icon-table"></i> {:L('my_desktop')}</a></li>
                        <li class="divider"></li>
                        <li><a href="#nogo" url="{:U('/HOME/Passport/logout')}"><i class="icon-key"></i> {:L('logout')}</a></li>
                    </ul>
                </li>
                <li class="dropdown" id="menu-messages">
                    <a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle">
                        <i class="icon icon-envelope"></i> 
                        <span class="text">{:L('messages')}</span> 
                        <span class="label label-important">5</span> <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a class="sAdd" title="" href="{:U('/OA/Message/add')}" target='mainFrame'><i class="icon-plus"></i> {:L('new_message')}</a></li>
                        <li class="divider"></li>
                        <li><a class="sAdd" title="" href="{:U('/OA/Message/add/type/department')}" target='mainFrame'><i class="icon-plus"></i> {:L('new_message_department')}</a></li>
                        <li class="divider"></li>
                        <li><a class="sInbox" title="" href="{:U('/OA/Message/inbox')}" target='mainFrame'><i class="icon-envelope"></i> {:L('inbox')}</a></li>
                        <li class="divider"></li>
                        <li><a class="sOutbox" title="" href="{:U('/OA/Message/outbox')}" target='mainFrame'><i class="icon-arrow-up"></i> {:L('outbox')}</a></li>
                        <li class="divider"></li>
                        <li><a class="sTrash" title="" href="{:U('/OA/Message/trash')}" target='mainFrame'><i class="icon-trash"></i> {:L('trash')}</a></li>
                    </ul>
                </li>
                <!--
                <li class=""><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">{:L('settings')}</span></a></li>-->
                <li class=""><a title="" href="{:U('/HOME/Passport/logout')}"><i class="icon icon-share-alt"></i> <span class="text">{:L('logout')}</span></a></li>
            </ul>
        </div>
        <!--close-top-Header-menu-->
        <!--start-top-serch-->
<!--        <div id="search">
            <input type="text" placeholder="{:L('search_here')}"/>
            <button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-white"></i></button>
        </div>-->
        <!--close-top-serch-->
        <!--sidebar-menu-->
        <div id="sidebar">
            <ul>
                <volist name="LeftNavs" id="ln" key="k">
                    <li class="<if condition='$k eq 0'>active</if><if condition='$ln[childs]'> submenu</if>">
                        <if condition="$ln[url] and $ln[url] neq '#nogo'">
                        <a href="#nogo" url="{:U($ln[url])}" tabid="{$ln.label}" onclick="PageFrames.moveTo(this)"><i class="icon icon-{$ln.icon}"></i> <span>{:L($ln[label])}</span></a> 
                        <else />
                        <a href="#nogo"><i class="icon icon-{$ln.icon}"></i> <span>{:L($ln[label])}</span></a>
                        </if>
                        <if condition='$ln[childs]'>
                            <ul>
                                <volist name="ln[childs]" id="lnc">
                                    <li><a href="#nogo" url="{:U($lnc[url])}" tabid="{$ln.label}-{$lnc.label}" onclick="PageFrames.moveTo(this)">{:L($lnc[label])}</a></li>
                                </volist>
                            </ul>
                        </if>
                    </li>
                </volist>
            </ul>
        </div>
        <!--sidebar-menu-->

        <!--main-container-part-->
        <div class="FramesWrapper">
            <div class="FramesNavContainer" id="FramesNavContainer">
                <ul class="clearfix">
                </ul>
                <div class="FramesNavActions clearfix">
<!--                    <a href="#nogo" onclick="PageFrames.refresh();"><i class="icon icon-refresh"></i> {:L('refresh')}</a>
                    <a href="#nogo" onclick="PageFrames.back();"><i class="icon icon-arrow-left"></i> {:L('back')}</a>
                    <a href="#nogo" onclick="PageFrames.forward();"><i class="icon icon-arrow-right"></i> {:L('forward')}</a>-->
                </div>
            </div>
            <div id="FramesContainer"></div>
        </div>
        
        
        <!--end-main-container-part-->

        <!--Footer-part-->

        <div class="row-fluid">
            <div id="footer" class="span12"> &copy; <a href="http://www.cnidea-tech.com" target="_blank">cnidea-tech.com</a> Designed by Matrix Admin.</div>
        </div>

        <!--end-Footer-part-->

        <script src="__PUBLIC__/base/js/jquery.min.js"></script> 
        <script src="__PUBLIC__/base/js/bootstrap.min.js"></script> 
        <script src="__PUBLIC__/base/js/matrix.js"></script> 
        <load href="__PUBLIC__/Js/common.js" />
        <load href="__PUBLIC__/Js/PageFrames.js" />
        <script type="text/javascript">
            // This function is called from the pop-up menus to transfer to
            // a different page. Ignore if the value returned is a null string:
            function goPage (newURL) {

                // if url is empty, skip the menu dividers and reset the menu selection to default
                if (newURL != "") {
      
                    // if url is "-", it is this page -- reset the menu:
                    if (newURL == "-" ) {
                        resetMenu();            
                    } 
                    // else, send page to designated URL            
                    else {  
                        document.location.href = newURL;
                    }
                }
            }

            // resets the menu selection upon entry to this page:
            function resetMenu() {
                document.gomenu.selector.selectedIndex = 2;
            }
            window.onload = function(){
                $("#sidebar a:first").click();
                PageFrames.bindEvent();
                $(window).resize(function(){
                    PageFrames.setWindowSize();
                });
                $("#sidebar li").click(function(){
                    $(this).addClass("active").siblings().removeClass("active");
//                    $(this).find("li").removeClass("active");
                    $(this).addClass("active");
                });
                //新消息
            }
        </script>
    </body>
</html>